package com.techstar.api.pojo.city;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.api.pojo.complex_id.DistrictCongestSectionId;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 行政区拥堵路段
 * @date 2021年6月25日
 *
 */
@Getter
@Setter
@Entity
@ToString
@Table(name = "district_congest_section")
@IdClass(DistrictCongestSectionId.class)
@org.hibernate.annotations.Table(appliesTo = "district_congest_section",comment="pord-1-行政区拥堵路段")
public class DistrictCongestSection {
	private String id;
	@Id
	private String congestId;
	private String roadSectionId;
	private String roadSectionName;
	@Id
	private String distId;
	private String distName;
	private String roadName;
	private Double congestDistance;
	private Double congestSpeed;
	private String congestKeeptime;
	@JsonDeserialize(using = DateTimeDeserializer.class)
    private DateTime congestStartTime;
	@JsonDeserialize(using = DateTimeDeserializer.class)
    private DateTime congestEndTime;
	private Double congestIndex;
	private String congestStartDesc;
	private String congestEndDesc;
	private String congestSectionName;
	private String congestStatus;
	private String congestLoc;
	private String relationId;
	private String eventId;
	@Column(columnDefinition="text COMMENT '拥堵路口标识'")
	private String linkGps1;
	@Column(columnDefinition="text COMMENT '拥堵路口标识'")
	private String linkGps2;
	@Column(columnDefinition="text COMMENT '拥堵路口标识'")
	private String linkGps3;
	@Column(columnDefinition="text COMMENT '拥堵路口标识'")
	private String linkGps4;
    @JsonDeserialize(using = DateTimeDeserializer.class)
    private DateTime createTime;
    private String timeIntervalId;
    @JsonDeserialize(using = DateTimeDeserializer.class)
    private DateTime updateTime;
    @JsonDeserialize(using = DateTimeDeserializer.class)
    private DateTime endTime;

}
